<?php
/*------------------------------------------------------------------------
# mod_rizvn_support - Module RizVN Support
# ------------------------------------------------------------------------
# Author: Phuoc Nguyen
# copyright Copyright (C) 2011 RizVN.Net. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.rizvn.net
# Technical Support: Mail - rizvn93@gmail.com
-------------------------------------------------------------------------*/
// no direct access
defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.tooltip');
 
$mail = 'mailto:';
$mobile_img = '<img src="https://lh6.googleusercontent.com/-KmSESE4aCkM/TrXoxJj4h8I/AAAAAAAAAdo/p1fY4dlmEow/s16/mobi.png">';
$tel_img = '<img src="https://lh6.googleusercontent.com/-WcTA4x6ubtY/TrX-g2714MI/AAAAAAAAAeE/7z5x-ABqYXQ/s16/tel1.png">';

$show_phone = ($params->get('show_phone'));
$mobile_num1 = ($params->get('mobile_num1'));
$mobile_num2 = ($params->get('mobile_num2'));
$mobile_num3 = ($params->get('mobile_num3'));

$tel_num1 = ($params->get('tel_num1'));
$tel_num2 = ($params->get('tel_num2'));
$tel_num3 = ($params->get('tel_num3'));

$email_add = ($params->get('email_add'));
$top = ($params->get('top'));
?>

<div id="rspbg" style="top:<?php echo $top; ?>px">
<a id="rspbutton" onclick="support();"><img src="<?php echo JURI::base().'modules/mod_rizvn_support/'; ?>images/button.png" alt="RizVN Support" title="RizVN Support" /></a>
	<div id="rspsu">
	<div id="rspsup">
<?php if( $yahoo_user ) { ?><?php echo $yahoo_status; ?><?php } ?>
<?php if( $gtalk_badge ) { ?><?php echo $gtalk_status; ?><?php } ?>
<?php if( $aim_user ) { ?><?php echo $aim_status; ?><?php } ?>
<?php if( $skype_user ) { ?><?php echo $skype_g_status; ?><?php } ?>
<?php if( $show_phone==1 ) { ?><a data-tooltip="sticky1"><img src="<?php echo JURI::base().'modules/mod_rizvn_support/'; ?>images/icon-phone.png" border="0" /></a><?php } ?>
<div id="mystickytooltip" class="stickytooltip"><img src="<?php echo JURI::base().'modules/mod_rizvn_support/'; ?>images/phone_support.jpg">
<div id="sticky1" class="atip" style="width:200px">
<?php if( $mobile_num1 ) { ?><?php echo $mobile_img; ?><?php echo $mobile_num1; ?><br/><?php } ?>
<?php if( $mobile_num2 ) { ?><?php echo $mobile_img; ?><?php echo $mobile_num2; ?><br/><?php } ?>
<?php if( $mobile_num3 ) { ?><?php echo $mobile_img; ?><?php echo $mobile_num3; ?><br/><?php } ?>
<?php if( $tel_num1 ) { ?><?php echo $tel_img; ?><?php echo $tel_num1; ?><br/><?php } ?>
<?php if( $tel_num2 ) { ?><?php echo $tel_img; ?><?php echo $tel_num2; ?><br/><?php } ?>
<?php if( $tel_num3 ) { ?><?php echo $tel_img; ?><?php echo $tel_num3; ?><?php } ?></div>
</div>
<?php if( $email_add ) { ?><a href="<?php echo $mail; ?><?php echo $email_add; ?>" target="blank"><img src="<?php echo JURI::base().'modules/mod_rizvn_support/'; ?>images/icon-email.png" border="0" alt="Email" /></a><?php } ?>
</div></div></div>
<script>
jQuery.noConflict();
</script>